//package com.avicit.zipkinkafkaesserver.jobs;
//
//import com.avicit.zipkinkafkaesserver.service.JobService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.io.IOException;
//
//@Component
//public class QueryEsJob {
//
//    @Autowired
//    private JobService jobService;
//
//    /**
//     * 接口调用 次数统计定时任务
//     * @throws IOException
//     */
////    @Scheduled(fixedRate = 50000)
//    public void doInterfaceCount() throws IOException {
//        jobService.doInterfaceCount("doInterfaceCount");
//    }
//
////    @Scheduled(fixedRate = 50*1000)
//    public void doInterfaceDuration() {
//        jobService.doInterfaceDuration("doInterfaceDuration");
//    }
//
////    @Scheduled(fixedRate = 50*1000)
//    public void doInterfaceAverageDuration() {
//        jobService.doInterfaceAverageDuration("doInterfaceAverageDuration");
//    }
// }
